import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const router = new VueRouter({
    mode: 'hash', // 使用 hash 模式
    routes: [
        {
            path: '/',
            name: 'home',
            component: () => import("@/views/home")
        },
        {
            path: "/about",
            name: 'about',
            component: () => import("@/views/about"),
        },
    ]
});

export default router;